#ifndef __Infrared_Telecontrol_H_
#define __Infrared_Telecontrol_H_

#include <reg51.h>
#include <intrins.h>

#define unit unsigned int
#define uchar unsigned char

#define GPIO_DIG P0
sbit LSA  = P1^2;
sbit LSB  = P1^3;
sbit LSC  = P1^4;
sbit IRIN = P3^2;

void Motor_Set();
void DelayMs(unsigned int x);
void IrInit();
void ReadIr();

#endif